home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / DB_CLIPP / 0292.ZIP / DBEPSON.DOC < prev    next >
Text File  |  1985-12-21  |  4KB  |  102 lines

  1.                   dBASE III EPSON PRINTER SETUP
  2.  
  3.                            Larry Kraus
  4.                      Program Resources, Inc.
  5.                   U.S. EPA Contract #68-91-6849
  6.                            March, 1985
  7.  
  8. This dBASE III utility provides both interactive and programmatic 
  9. control  of  EPSON  printer  feature.   It  is  comrised  of  the 
  10. following three files:
  11.  
  12.           DBEPSON.DOC - This document
  13.           DBEPSON.MEM - Printer control code memory variables
  14.           DBEPSON.PRG - Interactive printer setup program
  15.  
  16. To  intall  DBEPSON  simply copy the .PRG and .MEM file  to  your 
  17. dBASE III directory.
  18.  
  19. Interactive Usage:
  20.  
  21. To  use DBEPSON interactively execute dBASE III and  execute  the 
  22. procedure DBEPSON:
  23.  
  24.                DO DBEPSON
  25.  
  26. You will be presented with a menu of Epson printer setup options.  
  27. To  select an option simply enter the number to the right of  the 
  28. option  and  press  return.   When  an  option  is  selected  the 
  29. appropriate  control code is sent to the printer and the menu  is 
  30. re-displayed.   You can select as many options as you like.  When 
  31. you  are finished select the "Exit Procedure" option and you will 
  32. be returned to dBASE III command level.
  33.  
  34. Note that the procedure DBEPSON will load the memory variables in 
  35. the DBEPSON.MEM file.   The names of these memory variables begin 
  36. with  the letters EP.   When the procedure exits it will  release 
  37. all memory variable which begin with EP.
  38.  
  39. Programmatic Usage:
  40.  
  41. DBEPSON  can  be used programmatically from within procedures  or 
  42. report forms.   In either case the control code memory  variables 
  43. must  be  loaded  from the DBEPSON.MEM file using the  dBASE  III 
  44. RESTORE command:
  45.  
  46.                RESTORE FROM DBEPSON
  47.  
  48. From within a procedure you can execute the DBEPSON procedure  to 
  49. let  the user select print options from the menu or you can  send 
  50. control  codes  directly to the printer.   To send codes  to  the 
  51. printer use the following dBASE III commands:
  52.  
  53.                SET PRINT ON
  54.                ? variable
  55.                SET PRINT OFF
  56.  
  57. Where "variable" is one of the variable names in Table I.
  58.  
  59. To  control  the  printer  directly from  a  report  form  simply 
  60. reference  the  memory  variables in Table I  within  the  report 
  61. definition.   For  instance  if you want the report title  to  be 
  62. printed  with underlining enter the following in the report title 
  63. field:
  64.  
  65.           EPUND+"your report title"+EPNOUND
  66.  
  67. You must restore the DBEPSON memory varaibles before entering the 
  68. REPORT command.
  69.  
  70.  
  71.                              TABLE I
  72.                     DBEPSON Memory Variables
  73.  
  74.      EPINIT     = Initialize printer to power up state
  75.      EPBELL     = Sound printer bell
  76.      EPLF       = Immediate line feed
  77.      EPFF       = Immediate form feed
  78.      EP8LPI     = 8 lines per inch
  79.      EP6LPI     = 6 lines per inch
  80.      EPDRAFT    = Draft mode
  81.      EPLETTER   = Letter quality mode
  82.      EPELITE    = Elite font mode
  83.      EPNOELITE  = Cancel elite font mode
  84.      EPPORP     = Proportional spacing
  85.      EPNOPORP   = Cancel proportional spacing
  86.      EPITAL     = Italics font mode
  87.      EPNOITAL   = Cancel italics font mode
  88.      EPEXPAND   = Expanded print mode
  89.      EPNOEXPAND = Cancel expanded print mode
  90.      EPCOMP     = Compressed print mode
  91.      EPNOCOMP   = Cancel compressed print mode
  92.      EPEMPH     = Emphasized print mode
  93.      EPNOEMPH   = Cancel emphasized print mode
  94.      EPDBL      = Double-strike print mode
  95.      EPNODBL    = Cancel double-strike print mode
  96.      EPUND      = Start underline
  97.      EPNOUND    = Stop underline
  98.      EPSUPER    = Superscriptt mode
  99.      EPSUB      = Subscript mode
  100.      EPNOSCRP   = Cancel super/subscript mode
  101.  
  102.